﻿CREATE TABLE [dbo].[MessageLog] (
    [ID]            BIGINT           IDENTITY (1, 1) NOT NULL,
    [Message]       VARCHAR (MAX)    NOT NULL,
    [RowsAffected]  INT              NULL,
    [ErrorCode]     INT              NULL,
    [ProcessName]   [sysname]        NOT NULL,
    [ProcedureName] [sysname]        NOT NULL,
    [CreateDt]      DATETIME         NOT NULL,
    [Instance]      UNIQUEIDENTIFIER NULL, 
    CONSTRAINT [PK_MessageLog] PRIMARY KEY ([ID])
);

